package com.bt.dmdb.controller.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;



import com.bt.dmdb.controller.QuestionController;
import com.bt.dmdb.model.Question;
import com.bt.dmdb.service.QuestionService;
@Controller
@RequestMapping("question")
public class QuestionControllerImpl implements QuestionController {

	@Resource
	private QuestionService questionService;


	public QuestionService getQuestionService() {
		return questionService;
	}


	public void setQuestionService(QuestionService questionService) {
		this.questionService = questionService;
	}


	@Override
	@RequestMapping(value = "fetchFfeQuestions", method = RequestMethod.GET)
	@ResponseBody
	public List<Question> fetchFfeQuestions() {
		 return questionService.fetchFfeQuestions();
	}

}
